package com.atguigu.gulimall.product.dao;

import com.atguigu.gulimall.product.entity.SpuInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * spu信息
 * 
 * @author huyulu
 * @email 1085068942@qq.com
 * @date 2021-11-26 22:16:12
 */
@Mapper
public interface SpuInfoDao extends BaseMapper<SpuInfoEntity> {

    /**
     * 修改商品状态
     * @author 胡菜鸡
     * @date 2021/12/31 15:34
     * @param spuId 商品spuId
     * @param code 需要修改为哪种状态
     */
    boolean updateSpuStatus(@Param("spuId") Long spuId, @Param("code") int code);
}
